import {
	apiResquest
} from '@/utils/http.js'

export const Getlist = (params) => {
	return apiResquest({
		url: 'app/laborer/list',
		method: 'post',
		data:params
	})
}

export const Getlistdet = (id) => {
	return apiResquest({
		url: 'app/laborer/' + id,
		method: 'get',
	})
}

export const getRegionsById = (id) => {
	return apiResquest({
		url: 'app/laborer/item/' + id,
		method: 'get',
	})
}

export const getbyuser = () => {
	return apiResquest({
		url: 'app/laborer/selectAddressByUser',
		method: 'post',
	})
}

export const getsureorder = (params) => {
	return apiResquest({
		url: 'app/order/add',
		method: 'post',
		data:params
	})
}

export const getorderdet = (id) => {
	return apiResquest({
		url: 'app/order/' + id,
		method: 'get',
	})
}

export const getorderche = (id) => {
	return apiResquest({
		url: 'app/order/update/' + id,
		method: 'post',
	})
}

export const getSelectTime = (id) => {
	return apiResquest({
		url: 'app/order/time/' + id,
		method: 'post',
	})
}